/* Contact Section Styles */
.contact {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.premium-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.premium-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 87, 255, 0.15), rgba(0, 184, 255, 0.05));
    filter: blur(30px);
}

.premium-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.premium-circle:nth-child(2) {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -200px;
    opacity: 0.7;
}

.premium-circle:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, #4a7fff, #66dfff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(74, 127, 255, 0.3);
}

.contact-card-icon.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 127, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 127, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 127, 255, 0);
    }
}

.contact-card-header h3 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(90deg, #4a7fff, #66dfff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66dfff;
    font-size: 1.2rem;
}

.method-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.method-details p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
}

.method-details small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.book-call-btn {
    display: inline-block;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #4a7fff, #66dfff);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.book-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 127, 255, 0.3);
}

.contact-social {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

/* AI Card Styles */
.ai-demo-chat {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.chat-container::-webkit-scrollbar {
    width: 5px;
}

.chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.chat-message {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    max-width: 100%;
    animation: fadeIn 0.5s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a7fff, #66dfff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 80%;
}

.chat-message.bot .message-content {
    border-top-left-radius: 0;
}

.chat-message.user .message-content {
    background: rgba(74, 127, 255, 0.2);
    border-top-right-radius: 0;
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border-top-left-radius: 0;
    width: fit-content;
    margin-left: 40px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.ai-feature {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ai-feature .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(74, 127, 255, 0.2), rgba(102, 223, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66dfff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.ai-feature:hover .feature-icon {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 127, 255, 0.2);
}

.ai-feature h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ai-card-cta {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(74, 127, 255, 0.15), rgba(102, 223, 255, 0.1));
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
}

.ai-card-cta p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

/* FAQ Card Styles */
.faq-list {
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.faq-cta {
    text-align: center;
    margin-top: auto;
}

.text-link {
    color: #66dfff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.text-link:hover {
    gap: 0.7rem;
}

/* Media Queries */
@media (max-width: 1200px) {
    .contact-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .contact-cards-wrapper {
        grid-template-columns: 1fr;
    }
    
    .faq-card {
        grid-column: span 1;
    }
}

/* JS Classes */
.faq-item.active .faq-question {
    color: var(--accent-color);
}

.faq-item.active .faq-question i {
    color: var(--accent-color);
}

.assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 10px;
}

.assistant-messages::-webkit-scrollbar {
    width: 5px;
}

.assistant-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.assistant-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.message {
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    max-width: 85%;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

.message p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.bot {
    background: rgba(74, 127, 255, 0.1);
    border-top-left-radius: 4px;
    align-self: flex-start;
}

.message.user {
    background: rgba(74, 127, 255, 0.2);
    border-top-right-radius: 4px;
    align-self: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(74, 127, 255, 0.1);
    border-radius: 18px;
    border-top-left-radius: 4px;
    width: fit-content;
    animation: fadeIn 0.4s ease-out;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

.assistant-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(74, 127, 255, 0.2), rgba(102, 223, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66dfff;
    font-size: 1.2rem;
}

.feature-details h4 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.feature-details p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.3;
}

.cta-container {
    margin-top: auto;
    text-align: center;
}

.demo-request {
    background: linear-gradient(135deg, rgba(74, 127, 255, 0.15), rgba(102, 223, 255, 0.1));
    border-radius: 12px;
    padding: 1.2rem;
}

.demo-request p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .assistant-features {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info, .ai-assistant-showcase {
        width: 100%;
    }
}
